<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Raphaël · Analytics</title>
        <link rel="stylesheet" href="demo.css" type="text/css" media="screen">
        <link rel="stylesheet" href="demo-print.css" type="text/css" media="print">
        <script src="../JS/raphael.js"></script>
        <script src="popup.js"></script>
        <script src="jquery.js"></script>
        <script src="analytics.js"></script>
        <style type="text/css" media="screen">
            #holder {
                height: 250px;
                margin: -125px 0 0 -400px;
                width: 800px;
            }
        </style>
    </head>
    <body>
        <table id="data">
            <tfoot>
                <tr>
<?php
	require('../functions/xml.class.php');
	
	$parserXML = new XmlParser();
	
	$xml = $parserXML->loadXML("InterfaceInterface.xml");
	$answer = $parserXML->loadXML("answer.xml");
	
	foreach($answer->New->Property as $property) {
		if (strval($property->VarId) == strval($xml->DataStream->VarId)) {
			$min = $property->Min;
		}
	}
	
	foreach ($xml->DataStream->ValueForId as $value)

		echo "<th>".$value->SampleId."</th>";
?>
                </tr>
            </tfoot>
            <tbody>
                <tr>
<?php                
	foreach ($xml->DataStream->ValueForId as $value)

		echo "<td>".$value->Value."</td>";
?>
                
                </tr>
            </tbody>
        </table>
        <div id="holder"></div>
        <p id="copy">Demo of <a href="http://raphaeljs.com/">Raphaël</a>—JavaScript Vector Library</p>
    </body>
</html>
